import pygame,pygame.locals
import sys,os,time

def game_init():
    pygame.init()
    pygame.display.init()

WINDOW_MAX_X = 400
WINDOW_MAX_Y = 400
DISPLAYSURFACE = pygame.display.set_mode((WINDOW_MAX_X,WINDOW_MAX_Y))

COLOR_BLACK = (0,0,0)
COLOR_WHITE = (255,255,255)
COLOR_GREEN = (0,255,0)

COLOR_BLOCK_X = 40
COLOR_BLOCK_Y = 40
COLOR_BLOCK_1 = pygame.Surface((COLOR_BLOCK_X,COLOR_BLOCK_Y))
COLOR_BLOCK_1.fill(COLOR_GREEN)
COLOR_BLOCK_1_POSITION = (200,200)

while True:
    for event in pygame.event.get():
        if event.type == pygame.locals.QUIT:
            pygame.quit()
            sys.exit()

    DISPLAYSURFACE.blit(COLOR_BLOCK_1,COLOR_BLOCK_1_POSITION)

    pygame.display.update()